package presenter

var (
	//common
	CodeSuccess = 0
	MsgSuccess  = "Success"

	CodeClusterGetFail     = 1000001
	CodeClusterNotRunning  = 1000002
	CodeGetPageFail        = 1000003
	CodeGetTopicCountFail  = 1000004
	CodeTopicGetFail       = 1000005
	CodeConsumerGetGetFail = 1000006

	MsgClusterGetFail    = "从请求中获取集群信息失败"
	MsgClusterNotRunning = "请求的集群未运行"
	MsgGetPageFail       = "从请求中获取页信息失败"
	MsgGetTopicCountFail = "topic数量获取失败"
	MsgTopicGetFail      = "从请求中获取topic信息失败"

	//cluster
	CodeGetCreateClusterReqFail        = 1001001
	CodeCreateClusterFail              = 1001002
	CodeGetClusterFail                 = 1001003
	CodeListClusterFail                = 1001004
	CodeGetUpdateClusterReqFail        = 1001005
	CodeNoFindClusterMsgUpdate         = 1001006
	CodeUpdateClusterFail              = 1001007
	CodeClusterDeploying               = 1001008
	CodeNotDeleteClusterWhenExistTopic = 1001009
	CodeDeleteClusterFail              = 1001010
	CodeUpdateClusterNoChangeFail      = 1001011
	CodeGetCloudKafkaReqFail           = "1001012"
	CodeListCloudClusterFail           = "1001003"

	MsgGetCreateClusterReqFail        = "从请求中获取集群信息失败"
	MsgCreateClusterFailForOpApi      = "op接口调用错误，导致集群创建失败"
	MsgCreateClusterFail              = "落库失败，导致集群创建失败"
	MsgGetClusterFail                 = "集群获取失败"
	MsgListClusterFail                = "集群列表获取失败"
	MsgGetUpdateClusterReqFail        = "从请求中获取集群更新信息失败"
	MsgNoFindClusterMsgUpdate         = "没有查询到集群数据有更新"
	MsgUpdateClusterFailForOpApi      = "op接口调用错误，导致集群更新失败"
	MsgUpdateClusterFail              = "集群信息在数据库更新失败，导致集群更新失败"
	MsgClusterDeploying               = "集群部署中"
	MsgNotDeleteClusterWhenExistTopic = "集群存在主题，不允许删除"
	MsgDeleteClusterFailForOpApi      = "op接口调用错误，导致集群删除失败"
	MsgDeleteClusterFail              = "集群信息在数据库删除失败，导致集群删除失败"
	MsgUpdateClusterNoChangeFail      = "修改的集群没有变化"

	//cluster
	CodeGetCreateProxyReqFail        = 2001001
	CodeCreateProxyFail              = 2001002
	CodeGetProxyFail                 = 2001003
	CodeListProxyFail                = 2001004
	CodeGetUpdateProxyReqFail        = 2001005
	CodeNoFindProxyMsgUpdate         = 2001006
	CodeUpdateProxyFail              = 2001007
	CodeProxyDeploying               = 2001008
	CodeNotDeleteProxyWhenExistTopic = 2001009
	CodeDeleteProxyFail              = 2001010
	CodeUpdateProxyNoChangeFail      = 2001011

	MsgGetCreateProxyReqFail        = "从请求中获取集群Proxy信息失败"
	MsgCreateProxyFailForOpApi      = "op接口调用错误，导致集群Proxy创建失败"
	MsgCreateProxyFail              = "落库失败，导致集群Proxy创建失败"
	MsgGetProxyFail                 = "集群Proxy获取失败"
	MsgListProxyFail                = "集群Proxy列表获取失败"
	MsgGetUpdateProxyReqFail        = "从请求中获取集群Proxy更新信息失败"
	MsgNoFindProxyMsgUpdate         = "没有查询到集群Proxy数据有更新"
	MsgUpdateProxyFailForOpApi      = "op接口调用错误，导致集群Proxy更新失败"
	MsgUpdateProxyFail              = "集群Proxy信息在数据库更新失败，导致集群Proxy更新失败"
	MsgProxyDeploying               = "集群Proxy部署中"
	MsgNotDeleteProxyWhenExistTopic = "集群Proxy存在主题，不允许删除"
	MsgDeleteProxyFailForOpApi      = "op接口调用错误，导致集群Proxy删除失败"
	MsgDeleteProxyFail              = "集群Proxy信息在数据库删除失败，导致集群Proxy删除失败"
	MsgUpdateProxyNoChangeFail      = "修改的集群Proxy没有变化"

	//consumser_group
	CodeGetConsumerGroupDescFail       = 1002001
	CodeGetConsumerGroupDetailFail     = 1002002
	CodeListConsumerGroupFail          = 1002003
	CodeListTopicsForConsumerGroupFail = 1002004
	CodeGetConsumerGroupMessageFail    = 1002005
	CodeListConsumerGroupMessageFail   = 1002006
	CodeGetPartitionOffsetFail         = 1002007
	CodePartitionNotExist              = 1002008
	CodeResetPartitionOffsetFail       = 1002009
	CodeInvalidConsumerGroupID         = 1002010
	CodeDeleteConsumerGroupFail        = 1002011
	CodeCreateConsumerGroupFail        = 1002012
	CodeFiler                          = 1002013
	CodeGroupNotBindTopicExist         = 1002014
	CodeGroupHasRunningTopicExist      = 1002015
	CodeGroupNotFind                   = 1002016
	CodeGroupServerNotRunning          = 1002017

	MsgGetConsumerGroupDescFail       = "从请求中获取消费组描述信息失败"
	MsgGetConsumerGroupDetailFail     = "消费组详情获取失败"
	MsgListConsumerGroupFail          = "消费组列表获取失败"
	MsgListTopicsForConsumerGroupFail = "消费组的主题及消费位点列表获取失败"
	MsgGetConsumerGroupMessageFail    = "从请求中获取消费组信息失败"
	MsgListConsumerGroupMessageFail   = "消费组消息列表获取失败"
	MsgGetPartitionOffsetFail         = "从请求中获取分区位点信息失败"
	MsgPartitionNotExist              = "分区不存在"
	MsgResetPartitionOffsetFail       = "重置分区位点失败"
	MsgInvalidConsumerGroupID         = "消费组ID错误"
	MsgDeleteConsumerGroupFail        = "消费组删除失败"
	MsgCreateConsumerGroupFail        = "消费组创建失败"

	//message
	CodeGetMessageQueryReqFail = 1003001
	CodeListMessageFail        = 1003002
	CodeGetSendMessageReqFail  = 1003003
	CodeSendMessageFail        = 1003004

	MsgGetMessageQueryReqFail = "从请求中获取待查询的消息信息失败"
	MsgListMessageFail        = "消息列表获取失败"
	MsgGetSendMessageReqFail  = "从请求中获取待发送的消息信息失败"
	MsgSendMessageFail        = "发送消息失败"

	//partition
	CodeListPartitionFail = 1004001

	MsgListPartitionFail = "分区列表获取失败"

	//topic
	CodeTopicOverCount                = 1005001
	CodeGetCreateTopicReqFail         = 1005002
	CodeTopicExisted                  = 1005003
	CodeCreateTopicFail               = 1005004
	CodeGetTopicDetailFail            = 1005005
	CodeListTopicFail                 = 1005006
	CodeListAllTopicFail              = 1005007
	CodeGetUpdateTopicReqFail         = 1005008
	CodeUpdateTopicFail               = 1005009
	CodeDeleteTopicFail               = 1005010
	CodeListConsumerGroupForTopicFail = 1005011
	CodeUpdateTopicRemarkNoChangeFail = 1005012

	MsgTopicOverCount                = "topic超配额"
	MsgGetCreateTopicReqFail         = "从请求中获取待创建的topic信息失败"
	MsgTopicExisted                  = "topic已存在"
	MsgCreateTopicFail               = "topic创建失败"
	MsgGetTopicDetailFail            = "topic详情获取失败"
	MsgListTopicFail                 = "topic列表获取失败"
	MsgListAllTopicFail              = "获取所有的topic列表失败"
	MsgGetUpdateTopicReqFail         = "从请求中获取待更新的topic信息失败"
	MsgUpdateTopicFail               = "topic更新失败"
	MsgDeleteTopicFail               = "topic删除失败"
	MsgListConsumerGroupForTopicFail = "topic的消费组列表获取失败"
	MsgUpdateTopicRemarkNoChangeFail = "topic的remark没有变化"

	SysErrorFail = "系统错误，稍后重试"

	//Summary
	CodeGetSummaryFail = 1006001
	MsgGetSummaryFail  = "用户资源概览信息获取失败"

	//metric
	CodeGetMetricParamReqFail = 1007001
	CodeGetTopicMetricFail    = 1007002
	CodeGetClusterMetricFail  = 1007003

	MsgGetMetricParamReqFail = "从请求中获取监控参数失败"
	MsgGetTopicMetricFail    = "topic监控获取失败"
	MsgGetClusterMetricFail  = "cluster监控获取失败"

	//Operate
	CodeGetOpInstanceStateFail = 1008001

	MsgGetOpInstanceStateFail = "调用getInstanceState 失败"
)
